import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
Vue.use(ElementUI);
Vue.config.productionTip = false


Vue.filter("fdate", (val) => {
  let date = new Date(val * 1000); //实例化日期对象

  return date.toLocaleString().replace(/\//g, "-").replace(/(上午|下午)/, '');

  // let year = data.getFullYear();
  // let month = date.getMonth()+1;
})





new Vue({
  router,
  store,
  render: h => h(App)
}).$mount('#app')
